//
//  ViewController.m
//  新项目
//
//  Created by 帅比高 on 2017/6/8.
//  Copyright © 2017年 帅比高. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor=[UIColor whiteColor];
    
    self.view.backgroundColor=[UIColor blueColor];
   
    self.view.backgroundColor=[UIColor purpleColor];
    
    self.view .backgroundColor = [UIColor blackColor];
    
    self.view.backgroundColor=[UIColor redColor];
    
    UIView *textView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 100)];
    textView.backgroundColor = [UIColor redColor];
    [self.view addSubview:textView];
    
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.width)];
    
    [self.view addSubview:scrollView];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
